<{extend name="base" /}>
<{block name="title"}>
管理后台
<{/block}>

<{block name="css"}>
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
<{/block}>
<{block name="main"}>
<div class="am-cf am-padding am-padding-bottom-0">
    <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">请求日志</strong> /
        <small>request log</small>
    </div>
</div>

<hr/>

<div class="am-g">
    <div class="am-u-sm-12 am-u-md-12">
        <form method="post">
            <div class="am-u-sm-12 am-u-md-4">
                <input type="text" class="am-form-field" name="username" value="<{$username}>" placeholder="请输入用户名">
            </div>
         <div class="am-u-sm-12 am-u-md-8">
             <div class="am-input-group am-input-group-sm">

                 <select name="topicId" data-am-selected="<{btnSize: 'sm'}>">
                    <option value="-1">请选择专题</option>
                     <{volist name="topicList" id="item"}>
                        <option value="<{$item.tid}>" <{eq name="item.tid" value="$topicId"}> selected <{/eq}>><{$item.topic_name}></option>
                     <{/volist}>
                </select>


                 <select name="module_type" data-am-selected="<{btnSize: 'sm'}>">
                    <option value="-1">请选择模块</option>
                    <{volist name="moduleTypeList" id="item"}>
                        <option value="<{$item.id}>" <{eq name="item.id" value="$module_type"}> selected <{/eq}> ><{$item.name}></option>
                     <{/volist}>
                </select>

                 <select name="requestApi" data-am-selected="<{btnSize: 'sm'}>">
                     <option value="-1">请选择调用的api</option>
                     <{volist name="requestApiList" id="item"}>
                     <option value="<{$item}>" <{eq name="item" value="$requestApi"}> selected <{/eq}>><{$item}></option>
                     <{/volist}>
                 </select>

                <button class="am-btn am-btn-default" type="submit">查询</button>

             </div>
         </div>

        </form>
    </div>
</div>

<div class="am-g">
    <div class="am-u-sm-12" >
        <div class="am-u-sm-12">
        <table class="am-table am-table-striped am-table-hover table-main"  style="table-layout: fixed">
            <thead>
            <tr>
                <th class="table-id">序号</th>
                <th class="table-title">用户id</th>
                <th class="table-type">专题id</th>
                <th class="table-author am-hide-sm-only">request_api</th>
                <th class="table-set">module_type</th>
                <th class="table-set">知识图谱</th>
                <th class="table-set" >请求的数据</th>
                <th class="table-set" >返回的数据</th>
                <th class="table-set">请求时间</th>

            </thead>
            <tbody>
            <{volist name="data" id="vo"}>
            <tr>
                <td><{$vo.id}></td>
                <td><{$vo.user_id}></td>
                <td><{$vo.topicId}></td>
                <td><{$vo.request_api}></td>
                <td><{$vo.module_type}></td>
                <td><{$vo.kmap_code}></td>
                <td style="word-wrap:break-word;"><{$vo.request_data}></td>
                <td style="word-wrap:break-word;"><{$vo.response_data}></td>
                <td><{$vo.ctime|date="Y-m-d H:i:s",###}></td>

            </tr>
            <{/volist}>
            </tbody>
        </table>
        </div>
        <div class="am-cf am-fr">
            <{$page}>
        </div>
    </div>

</div>

<{/block}>